package com.game.backend.mapper;

import com.game.backend.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> getAll();

    User getByUsername(@Param("username")String username);

    User getById(@Param("id")int id);

    int add(@Param("username")String username,
            @Param("password")String password);
}
